import groovy.xml.MarkupBuilder
import viewbuilder.TablePage

def writer = new StringWriter()
def builder = new MarkupBuilder(writer)

TablePage tablePage = new TablePage()

tablePage.render(builder, [1, 2, 3, 4])
println writer
